package com.jdd.pedicure.dao;

import com.jdd.pedicure.entity.Admin;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;


@Repository
public interface AdminDao extends JpaRepository<Admin,Integer> {
    @Query(nativeQuery = true, value = "SELECT * FROM admin WHERE userName=:name and password = :pwd")
    Admin userlogin(@Param("name") String name,@Param("pwd") String pwd);

}
